<?php
require "../includes/db.php"; 
$mysqli = new MossCMS();
if ($_SESSION[$prefix.'_username'] == ""){  header("Location: ../login.php"); exit;}
if ($_SESSION[$prefix."_security"] < 1){header("location:../login.php?action=5"); exit;}



$site_thumb_size 		= 200;
$default_image 			= 250;

if ($_SERVER['REQUEST_METHOD'] == "POST") { 

$date	= date("Y-m-d H:i:s");

   $title    = $_POST['title'];
	
		$mysqli->groups_add($title);
		$mysqli->admin_action($z_user, "Added User Group $title");

header("Location:groups_list.php");

}//END POST 
//*************************



$date = date("m/d/Y");

?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="../includes/admin.css"/>
<title><?php echo $global_title;?></title>

  
</head>
<body>

<div id="wrap">
	<div id="page-header">
		<?php include('includes/header.php');?>

	</div>
	
	<div id="page-body">
		<div id="tabs">
			<?php $tab="media"; include('includes/header_tabs.php');?>
		</div>

		<div id="acp">
		<div class="panel">
			<span class="corners-top"><span></span></span>
				<div id="content">
				<div id="menu">
						
					<?php include('includes/menu_top.php');?>	
					<?php include('includes/menu_main.php');?>
					</div>
	
					<div id="main">
<a name="maincontent"></a>


	<h1>Add User Group</h1>
	
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1" onSubmit="return verify();">
	  
        <fieldset><legend>Group Information</legend>
		 
		 <dl>
              <dt>Group Name <small>(as it appears in AD)</small>:</dt>
              <dd><input name="title" type="text" id="title" size="60" autofocus required /></dd>
            </dl>
 
		                                   
<p class="submit-buttons"><input type="submit" class="button1" name="Add Group" id="submit" value="Add Group" /></p>

        </fieldset>

    </form>

		</div><!-- main -->
	</div><!-- content -->
<span class="corners-bottom"><span></span></span>
</div><!-- panel -->
</div><!-- acp -->

	
	<div id="page-footer">
	<?php include('includes/footer.php');?>
				</div>
</div><!-- page-body -->
</div><!-- wrap -->

</body> 
</html>